package com.lt.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lt.reggie.dto.DishDto;
import com.lt.reggie.entity.Category;
import com.lt.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品和口味信息，需要同时操作两行表：dish、dishFlavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品和口味
    public DishDto getByIdWithFlavor(Long id);

    //修改菜品
    public void updateWithFlavor(DishDto dishDto);

    //删除单个或批量菜品
    public void deleteWithFlavor(List<String> ids);

    //单个或批量停售或起售菜品
    public void updateOrListWithFlavor(int status,List<String> ids);
}
